from typing import List
from functools import reduce
from math import gcd


class Solution:
    def isGoodArray(self, nums: List[int]) -> bool:
        return reduce(gcd, nums) == 1


print(Solution().isGoodArray([29, 6, 10]))
